package com.ht.pms.core.dao;

import com.ht.pms.core.dto.DataImportQueryReq;
import com.ht.pms.core.dto.upload.UpLoadTemp;
import com.ht.pms.core.dto.upload.UploadFile;

import java.util.List;

/**
 * @author:喻尊龙
 * @date: 2018/4/19
 */
public interface DataImportDao {

    List<UpLoadTemp> getUpLoadTempList(String tableName,int offSet,int size);

    int getUpLoadTempListCount(String tableName);

    int deleteUploadTemp(String id);

    int deleteUploadFile(String fileId,String batchCode);

    int deleteData(String fileId,String batchCode);

    int updataBase(String batchCode);

    UpLoadTemp getNewUpLoadTemp();

    UploadFile getNewUploadFile(String batchCode);

    List<UploadFile> getUploadFileList(DataImportQueryReq req);

    int getUploadFileListCount(DataImportQueryReq req);

    int getFailImportCount(String fileId,String batchCode);

    int updataCheckState(String fileId,String batchCode);

    int updataRecordCheckState(String fileId,String batchCode,String templatCode);
}
